﻿# common variables
@coa_width = 768
@coa_height = 512
@canton_scale_cross_x = @[ ( 333 / coa_width ) + 0.001 ]
@canton_scale_cross_y = @[ ( 205 / coa_height ) + 0.001 ]
@canton_scale_sweden_x = @[ ( 255 / coa_width ) + 0.001 ]
@canton_scale_sweden_y = @[ ( 204 / coa_height ) + 0.001 ]
@canton_scale_norway_x = @[ ( 192 / coa_width ) + 0.001 ]
@canton_scale_norway_y = @[ ( 192 / coa_height ) + 0.001 ]
@canton_scale_denmark_x = @[ ( 220 / coa_width ) + 0.001 ]
@canton_scale_denmark_y = @[ ( 220 / coa_height ) + 0.001 ]
@third = @[1/3]

ETH = { # Ethiopia
	flag_definition = {
		coa = ETH
		subject_canton = ETH		
		allow_overlord_canton = yes	
		coa_with_overlord_canton = ETH_subject		
		priority = 1
	}
	flag_definition = {
		coa = ETH_absolute_monarchy
		subject_canton = ETH_absolute_monarchy
		allow_overlord_canton = yes	
		coa_with_overlord_canton = ETH_subject	
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = ETH_republic
		subject_canton = ETH_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
		# WB edit
		allow_overlord_canton = yes	
		coa_with_overlord_canton = ETH_subject
	}	
	
	## WB originals
	
	flag_definition = {
		coa = ETH_monarchy_post_1913
		subject_canton = ETH_monarchy_post_1913		
		allow_overlord_canton = yes	
		coa_with_overlord_canton = ETH_subject		
		priority = 2
		
		trigger = {
			coa_def_monarchy_flag_trigger = yes
			
			exists = scope:actor
			scope:actor = { 
				has_technology_researched = nationalism
			}
			game_date >= 1913.1.1
		}
	}
	
	flag_definition = {
		coa = ETH_dictatorship
		subject_canton = ETH_dictatorship
		priority = 50
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}

	flag_definition = {
		coa = ETH_communist
		subject_canton = ETH_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ETH_anarchist
		subject_canton = ETH_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = ETH_subject_ITA
		subject_canton = ETH_monarchy_post_1913
		allow_overlord_canton = yes			
		priority = 25
		trigger = { 
			coa_def_italian_ensign_trigger = yes
		}
	}
}


SOK = { # Sokoto

	flag_definition = {
		coa = SOK
		subject_canton = SOK
		allow_overlord_canton = yes	
		coa_with_overlord_canton = SOK_subject		
		priority = 1
	}
	
	flag_definition = {
		coa = SOK_republic
		subject_canton = SOK_republic
		priority = 10
		coa_with_overlord_canton = SOK_subject
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}		
	
	flag_definition = {
		coa = SOK_fascist
		subject_canton = SOK_fascist
		priority = 1500
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	
	flag_definition = {
		coa = SOK_fascist
		subject_canton = SOK_fascist
		priority = 1500
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}

	flag_definition = {
		coa = SOK_communist
		subject_canton = SOK_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	# WB anarchist flags
	flag_definition = {
		coa = SOK_anarchist
		subject_canton = SOK_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
	
}

### Southern Africa ###

MAD = { # Madagascar
	flag_definition = {
		coa = MAD
		subject_canton = MAD
		allow_overlord_canton = yes		
		coa_with_overlord_canton = MAD_subject	# WB edit	
		priority = 1
	}
	flag_definition = {
		coa = MAD_republic
		subject_canton = MAD_republic
		
		allow_overlord_canton = yes	# WB edit
		coa_with_overlord_canton = MAD_subject_republic	# WB edit
		overlord_canton_scale = { 0.34 0.5 }
		
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = MAD_subject_FRA
		priority = 50
		trigger = { 
			coa_def_french_ensign_trigger = yes
		}
	}	
	
	## WB originals
	
	flag_definition = {
		coa = MAD_dictatorship
		subject_canton = MAD_dictatorship
		priority = 1500
		trigger = { 
			coa_def_dictatorship_flag_trigger = yes
		}
	}

	flag_definition = {
		coa = MAD_communist
		subject_canton = MAD_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	
	# WB anarchist flags
	flag_definition = {
		coa = MAD_anarchist
		subject_canton = MAD_anarchist
		priority = 1501
		trigger = { 
			coa_def_anarchy_flag_trigger = yes
		}
	}
}


# Decentralized States

MOS = { # Mossi
	flag_definition = {
		coa = MOS_waifu_universalis
		subject_canton = MOS_waifu_universalis
		priority = 1
	}
}